import axios from "axios"
export default function request(url,method,params,data){
  return new Promise ((resolve)=>{
    axios({
      url,
      method,
      params,
      data,
      headers:{
        'x-xt-client-info':'platform=h5;version=2.7.8',
        "Authorization": "bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ'9.eyJleHAiOjE2NjI3MDQ2MjEsInVzZXJfbmFtZSI6Ijc1Mjg2Njc1MTc3OTE4MDU3NSIsImF1dGhvcml0aWVzIjpbIlJPTEVfU1RVIl0sImp0aSI6IjQ4YWQ5ODY5LTJmMGUtNGFlOS1hZDUzLWU3MWZkYTdiYWUxYSIsImNsaWVudF9pZCI6InVzZXItY2xpZW50Iiwic2NvcGUiOlsiYWxsIl19.aK6dJeaDNfmVbYJ_d3o1L58BJxFwayymnJVNpO0XDfA"
      }
    }).then(res=>{
      resolve(res)
    })
  })
}